<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Fornt extends CI_Controller {
	public function __construct(){
		parent::__construct();
		// if(!$this->session->userdata('user_is_login')){
		// 	redirect('/Prve_admin/login');
		// }
	}
	public function index(){
	       	$this->load->model('Product_model');
			$this->load->model('Article_model');
			$this->load->model('Product_catalog_model');
			$data=array(
				'products'=>$this->Product_model->get_last(4),
				'notes'=>$this->Article_model->get_notes(),
				'news'=>$this->Article_model->get_news(),
				'catalogs'=>$this->Product_catalog_model->get_all(),
				// 'f_recommend'=>$this->Product_model->get_recommend(1),
				// 'f_no_recommends'=>$this->Product_model->get_no_recommend(1)

			);
			$this->load->view('Fornt_index',$data);
	}
}
